<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Course extends Model
{
    use SoftDeletes;

    protected $table='course';

    public function courseClass(){
        return $this->belongsTo('App\Models\CourseClass','course_class_id','id');
    }

    public function getCourse(){
        return $this->where('id',1)->get();
    }
}
